.et-top-bar {
  @include et-height($et-top-bar-height);
  position: fixed;
  left: $et-nav-width;
  right: 0;
  background-color: $et-top-bar-bg;
  z-index: 80;

  @include breakpoint(medium up) {
    border-bottom: 1px solid $et-top-bar-border-color;
  }

  .columns {
    padding:0;
  }

  .et-switch-menu-btn {
    @include et-height($et-top-bar-height);
    width: $et-top-bar-height;
    display: block;
    text-align: center;
    color: $et-top-bar-txt-color;

    i {
      font-size: 1.5rem;
    }

    &:hover {
      color: $black;
    }
  }

  .et-open-drawer-btn {
    @extend .et-switch-menu-btn;
    color: $et-medium-gray;
    &:hover {
      color: $et-dark-gray;
    }
  }
}

#topBarRight {
  float: right;

  li {
    height: $et-top-bar-height;

    a {
      i, span {
        vertical-align: middle;
      }
    }
  }

  .is-dropdown-submenu {
    min-width: 8rem;
    padding: 0.5rem 0;
    text-align: left;

    li {
      height: auto;

      &.divider {
        margin-top: 0.1rem;
        padding-top: 0.1rem;
        position: relative;
      }

      &.divider:before {
        content: '';
        width: 100%;
        border-top: 1px solid $et-medium-gray;
        position: absolute;
        top: 0;
      }

      &.clear-divider:before {
          content: none;
      }

      &.more-msg {
        text-align: center;
        border-top: 1px dotted $et-medium-gray;
        padding: 0.5rem 0.5rem 0;

        a {
          color: $primary-color;
          font-weight: bold;

          &:hover {
            color: $white;
          }
        }
      }
    }

    a {
      padding: 0.5rem;
      font-size: 0.8rem;
      color: $black;

      &:hover {
        @include et-color-setting(white, $et-top-bar-txt-hover-bg);
      }

      i {
        font-size: 1.25rem;
      }

      span {
        line-height: 1rem;
      }
    }
  }

  &.dropdown.menu {
    & > li.is-dropdown-submenu-parent {
      & > a {
        padding: 0.875rem;

        &:after {
          content: none;
        }

        i {
          margin: 0 0.25rem;
        }
        color: $et-top-bar-txt-color;
        @include breakpoint(small only) {
          color: $et-medium-gray;
        }
      }

      &.is-active {
        background-color: $primary-color;

        & > a {
          color: $et-top-bar-bg;

          span.badge {
            @include et-color-setting($primary-color, $et-top-bar-bg);
          }
        }
      }

      &.current-user-wrap {
        & > a {
          span {
            font-size: 0.875rem;
          }
        }
      }
      @include breakpoint(medium up) {
        &:before {
          content: "";
          position: absolute;
          width: 1px;
          right: 0;
          top: 5px;
          bottom: 5px;
          background: linear-gradient(to bottom, rgba(51, 51, 51, 0) 0%, rgba(51, 51, 51, 0.2) 50%, rgba(51, 51, 51, 0) 100%);
        }

        &.clear-divider:before {
          content: none;
        }
      }
    }
  }

  .badge {
    @include et-badge(0.5rem, 2rem, 0.125rem, absolute);
  }
}
